import { get,post } from '@/utils/request'
// 登录
export const login = (params:any) => {
    return get('/jwt/login',params)
}
// 新建用户
export const addUser = (data: any) => {
    return post('/jwt/addUser',data)
}
// 获取用户列表
export const getUsers = () => {
    return get('/api/users')
}
// 修改
export const updUser = (data: any) => {
    return post('/api/updUser',data)
}
// 删除用户
export const delUser = (data: any) => {
    return get('/api/delUser',data)
}